package com.detooa.detooa.utils.bean.oa.request;

import java.util.HashMap;
import java.util.Map;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@ToString
@EqualsAndHashCode(callSuper = false)
public class OaMessageVo {
    private String code;// 消息来源
    private String loginIdList;// 接收人登录名 "900495,900486"
    private String creater;// creater的值 创建人OA系统id / 创建人登录名 / 创建人编号 / 创建人姓名（对应接收人所传入的形式）
    private String title;// 标题
    private String context;// 标题
    private String linkUrl;// PC端链接
    private String linkMobileUrl;// 移动端链接

    public OaMessageVo() {
    }

    public OaMessageVo(String loginIdList, String title, String context, String linkUrl) {
        this.loginIdList = loginIdList;
        this.title = title;
        this.context = context;
        this.linkUrl = linkUrl;
    }
    public OaMessageVo(String loginIdList, String title, String context, String linkUrl, String linkMobileUrl) {
        this.loginIdList = loginIdList;
        this.title = title;
        this.context = context;
        this.linkUrl = linkUrl;
        this.linkMobileUrl = linkMobileUrl;
    }

    public OaMessageVo(String code, String loginIdList, String creater, String title, String context, String linkUrl, String linkMobileUrl) {
        this.code = code;
        this.loginIdList = loginIdList;
        this.creater = creater;
        this.title = title;
        this.context = context;
        this.linkUrl = linkUrl;
        this.linkMobileUrl = linkMobileUrl;
    }

    public Map<String, String> toParams() {
        Map<String, String> params = new HashMap<String, String>();
        params.put("code", code);
        params.put("loginIdList", loginIdList);
        params.put("creater", creater);
        params.put("title", title);
        params.put("context", context);
        params.put("linkUrl", linkUrl);
        params.put("linkMobileUrl", linkMobileUrl);
        return params;
    }

}
